package pl.minim.unidefCMS.objects {

	/**
	 * @author Marek Brun
	 */
	public class AbstractUnidefText extends AbstractUnidefObject {
		
		public var text:String='';
		
		public function AbstractUnidefText() {
			
		}
		
		override public function toXML():XML {
			var xml:XML=<i/>;
			try{
				xml.appendChild(text);
			}catch(e:Error){
				xml.appendChild("<![CDATA["+text+"]]>");
			}
			return xml;
		}
		
		override public function exportToRawData():* {
			return text;
		}
		
	}
}
